﻿<%@ Page Language="C#" AutoEventWireup="true"  Inherits="DC.BLL.NewCard"
    MasterPageFile="~/Admin/App/AppMaster.Master" %>
<asp:Content ID="Content1" runat="server" contentplaceholderid="head">
      
</asp:Content>

<asp:Content ContentPlaceHolderID="Main_Content" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">新增优惠卡</th>
        </tr>
        <tr>
            <td width="100" align="right">优惠卡名称：</td>
            <td>
            <asp:TextBox ID="CardName" runat="server" CssClass="input required" maxlength="24" Width="400"></asp:TextBox>            
            </td>          
        </tr>
        <tr>
            <td align="right">所属类别：</td>
            <td><asp:DropDownList id="ddlClassId" CssClass="required" runat="server" Width="110"></asp:DropDownList></td>
        </tr>
        <tr>
            <td align="right" valign="top">优惠价：</td>
            <td>
                <asp:TextBox ID="Price" runat="server" CssClass="input  required number" maxlength="6" Width="100"></asp:TextBox> 
            </td>
        </tr>       
        <tr>
            <td align="right" valign="top">过期时间：</td>
            <td>
                <asp:TextBox ID="ExpiredDate"  runat="server" CssClass="input required dateISO" HintINfo="如:2011-04-01"  Width="100"></asp:TextBox> 
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">优惠卡附件：</td>
            <td>
                <%--<img style="height: 174px; width: 169px" id="imgPreView" src="../../Images/noimg.gif"/>--%>
                <br />
                <asp:FileUpload ID="AttachmentFile" runat="server" Width="400" CssClass="required"/> 
            </td>
        </tr>
    </table>
    <div style="margin-top:10px;text-align:left; margin-left:115px;">
      <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" 
            onclick="btnSave_Click" />
      &nbsp;&nbsp;
      <input name="重置" type="reset" class="submit" value="重置" />
    </div>
  
  
   
   <script language="javascript" type="text/javascript">
       var file = "<%=this.AttachmentFile.ClientID %>";
       var dateId = "<%=this.ExpiredDate.ClientID %>";
       var seller = "<%=this.ddlClassId.ClientID %>";

       var date=
       $(document).ready(function () {
//           $("#" + file).change(function () {
//               var url = "file:///" + $(this).val();              
//               $("#imgPreView").attr("src", url);
 //           });
            
       });

       $(function () {
           //表单验证JS
           $("#aspnetForm").validate({
               //出错时添加的标签
               errorElement: "span",
               success: function (label) {
                   //正确时的样式
                   label.text(" ").addClass("success");
               }
           });
       });
   </script>
</asp:Content>


